package com.pw.study.flink.source

import org.apache.flink.streaming.api.scala._

object CollectionSource {
  def main(args: Array[String]): Unit = {
    val env: StreamExecutionEnvironment = StreamExecutionEnvironment.getExecutionEnvironment
    env.setParallelism(2)
    val ds: DataStream[String] = env.fromCollection(List("hello", "word", "tiger"))


    ds.print("word")
    env.execute()
  }
}
